package com.cloudlinkscm.loms.services.base.notify.domain.email;

import com.cloudlinkscm.loms.services.base.notify.constant.NotificationEnum;
import com.cloudlinkscm.loms.services.base.notify.dao.MessageFlowDao;
import com.cloudlinkscm.loms.services.base.notify.domain.AbstractMessageFlowManager;
import com.cloudlinkscm.loms.services.base.notify.model.entity.EmailMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author : tac
 * @date : 2017/6/16
 */

@Component
public class EmailMessageFlowManager extends AbstractMessageFlowManager<EmailMessage> {
    @Autowired
    public EmailMessageFlowManager(MessageFlowDao dao) {
        super(dao);
    }

    @Override
    protected String getMessageType() {
        return NotificationEnum.E_MAIL.key;
    }
}
